<?php    
$user = 'root';
$passwd = '';
$mysqlServer = 'localhost';
$dataBaseName ='thiebthieb';
require_once 'DB.php';
$dsn ='mysql://'.$user.':'.$passwd.'@'.$mysqlServer.'/'.$dataBaseName;
$db =& DB::connect($dsn);
if (DB::isError($db)) {
    die($db->getMessage());}
    $res =& $db->getRow('SELECT * FROM annonce',array(), DB_FETCHMODE_ORDERED);
    $table[]=$res;
    print_r($table);
echo 'la connexion a reussie' ; 
$db->disconnect();
?>